import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/page/Login"
import BaseMessage from "@/page/BaseMessage"
import IVFFollowing from "@/page/IVFFollowing"
import PhysicalExamination from "@/page/PhysicalExamination"
import OvulationInduction from "@/page/OvulationInduction"
import EmbryosInduction from "@/page/EmbryosInduction"
import FreezingStorage from "@/page/FreezingStorage"
import EmbryoMove from "@/page/EmbryoMove"
import Ingravidation from "@/page/Ingravidation"
Vue.use(Router)
export default new Router({
	routes: [

	 	{
        path: '/',
        meta: {title: '',requireAuth: true },
        component: (resolve) => require(['../page/MainView.vue'], resolve),
        children: [
        			{ path: '/',redirect: '/BaseMessage',component:BaseMessage,meta: {requireAuth: true }},


	        		{ path: 'BaseMessage',component: BaseMessage,name:'BaseMessage',meta: {requireAuth: true } },
				    { path: 'IVFFollowing', component: IVFFollowing, name:'IVFFollowing',meta: {requireAuth: true }  },
					{ path: 'PhysicalExamination',component: PhysicalExamination,name:'PhysicalExamination'  ,meta: {requireAuth: true }},
					{ path: 'OvulationInduction',component: OvulationInduction ,name:'OvulationInduction' ,meta: {requireAuth: true }},
					{ path: 'EmbryosInduction',component: EmbryosInduction , name:'EmbryosInduction',meta: {requireAuth: true } },
					{ path: 'FreezingStorage', component: FreezingStorage , name:'FreezingStorage',meta: {requireAuth: true } },
					{ path: 'EmbryoMove', component: EmbryoMove ,name:'EmbryoMove' ,meta: {requireAuth: true }},
					{ path: 'Ingravidation', component: Ingravidation ,name:'Ingravidation',meta: {requireAuth: true } }
        		],
	        
	    },{
	    	path: '/Login',
	    	meta: {
	    		title: '乐生服务平台',
	    	},
	        component: (resolve) => require(["../page/Login.vue"], resolve)
	    }
	  ]
})




